import name from '../view/asa.vue'
const routes = [
    {
        path: '/',
        redirect: '/Layout',
    },
    {
        path: '/Layout',
        component: () => import('../layout/layout.vue'),
        children: [
            {
                name: 'son',
                path: '',
                alias: ['son'],
                component: () => import('../view/son/son.vue')
            }
        ]
    },
    // 动态路由去匹配错误界面
    {
        name: 'error',
        path: '/error/:id',
        component: () => import('../view/error/error.vue')
    }
]


export default routes